#ifndef cardcontrol_H
#define cardcontrol_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>
#include <QMouseEvent>

class cardcontrol:public QWidget
{
    Q_OBJECT
public:
    explicit cardcontrol(QWidget *parent = nullptr);
    ~cardcontrol();
protected:
    void paintEvent(QPaintEvent *event) override;
    void mousePressEvent(QMouseEvent *event) override;
signals:
    void sendSelf(cardcontrol *w);
};

#endif // cardcontrol_H
